<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>hjm-vue-directive</title>
    <style>
        p{
            line-height: 50px;
            border: 1px solid #ccc;
        }
        li{
            width: 100px;
            height: 100px;
            line-height: 100px;
            text-align: center;
            background-position: center;
            background-repeat: no-repeat;
            background-size: cover;
            float: left;
            list-style: none;
        }
    </style>
</head>
<body>
    <div id="app">
        <p v-swipeleft='swipeleft'>我调用的是左滑动指令</p>
        <p v-swiperight='swiperight'>我调用的是右滑动指令</p>
        <p v-swipedown='swipedown'>我调用的是下滑动指令</p>
        <p v-swipeup='swipeup'>我调用的是上滑动指令</p>
        <p v-longtap='longtap'>我调用的是长按指令(按一秒以上视为长按)</p>
        <p v-swiper='swiper'>我是移动事件</p>
        <ul>
            <li v-for="(img,index) in imgs" v-imgload='img'>图片加载</li>
        </ul>
    </div>
    <script src="./dist/main.js"></script>
</body>
</html>